<html>
new board
<% form_for @b do |board| %>
North: <%=board.text_field :hand_0%> <br/>
South: <%=board.text_field :hand_1%> <br/>
East: <%=board.text_field :hand_2%> <br/>
West: <%=board.text_field :hand_3%> <br/>
<%=board.submit%>
<table border="1">
<% ['0','1','2','3'].each do |hand| %>
<tr align="center"><td>					
						<%=case hand
								when '0'
									'North'
								when '1'
									'South'
								when '2'
									'East'
								when '3'
									'West'
							end%>
</td>
	<% ['2','3','4','5','6','7','8','9','10','J','Q','K','A'].each do |header| %>
		<td><%=header%></td>
	<%end%>
	</tr>
	<% ['C','D','H','S'].each do |suit| %>
		<tr align="center">
			<td>
					<%=case suit
								when 'C'
									'Clubs'
								when 'D'
									'Dianomds'
								when 'H'
									'Hearts'
								when 'S'
									'Spades'
							end%>
			</td>
		<% ['2','3','4','5','6','7','8','9','10','J','Q','K','A'].each do |cnt| %>
			<td><%=check_box "#{hand}_#{cnt}#{suit}", "#{hand}_#{cnt}#{suit}"%></td>
		<% end %>
		</tr>
	<% end %>
<% end %>
<%end%>
</html>
